﻿using System.Runtime.CompilerServices;

namespace UniversalApproach.Expands
{
    public static class StringExpand
    {
        /// <summary>
        /// 使用<see cref="string.IsNullOrEmpty"/>及<see cref="string.IsNullOrWhiteSpace"/>方法查询字符串是否为空
        /// </summary>
        /// <param name="s">字符串</param>
        /// <returns></returns>
        public static bool IsEmpty(this string s)
            => string.IsNullOrEmpty(s) || string.IsNullOrWhiteSpace(s);
    }
}